<?php
	class nick {
	
		private $irc;
		private $chan;	

		public function __construct($chan,$rIRC)
		{
			$this->nick = $chan;
			$this->irc = $rIRC;
		}
	
		public function join()
		{
			$this->irc->sendRaw('JOIN '.$this->chan);
		}

		public function mode($modes=null)
	`	{	
			if (!empty($modes))
			{
//				$this->irc->sendRaw("MODE $modes")
			}
			else
			{
			}
		}

		public function sendPM($msg)
		{
			$this->irc->sendRaw('PRIVMSG '.$this->chan.' '.$msg);
		}
	
		public function sendNotice($msg)
		{
			$this->irc->sendRaw('NOTICE '.$this->chan.' '.$msg);
		}
	}
?>
